package com.info.springmongo.entity;

import lombok.Getter;
import lombok.Setter;
import org.bson.types.ObjectId;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;
import java.time.LocalDateTime;

@Getter
@Setter
@Document(collection = "student")
public class Student implements Serializable {

    @Id
    private Long id;

    private String name;

    private Integer age;

    private String clz;

    // 入学时间
    private LocalDateTime timeOfEnrollment;

}
